<div class="row">
  <div class="comm-box ">
    <div class="login-form">
      <%= render 'public/flash_notice' %>
      <%= form_tag sessions_path,  class: 'form-horizontal', role: 'form' do |f| %>
        <div class="form-group">
        <label class="col-sm-2 control-label">用户名</label>
        <div class="col-sm-5">
          <input type="text" name="name" class="form-control" placeholder="用户名">
        </div>
      </div>
      <div class="form-group">
        <label class="col-sm-2 control-label">密码</label>
        <div class="col-sm-5">
          <input type="password" name="password" class="form-control" placeholder="密码">
        </div>
      </div>
      <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
          <button type="submit" class="btn btn-primary" data-loading-text="正在加载...">登录</button>
        </div>
      </div>
      <% end %>
    </div>
  </div>
</div>

